package com.example.goods_service.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class T_commodity_category implements Serializable
{
    private int id;
    private String name;
    private  String category_name;
    private int category_parent_ID;
    private List<T_commodity_category> child = new ArrayList<>();

    public String getCategory_name() {
        return category_name;
    }
    public void add(T_commodity_category t_commodity)
    {
        this.child.add(t_commodity);
    }
    public void setCategory_name(String category_name) {
        this.category_name = category_name;
    }
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCategory_parent_ID() {
        return category_parent_ID;
    }

    public void setCategory_parent_ID(int category_parent_ID) {
        this.category_parent_ID = category_parent_ID;
    }

    public List<T_commodity_category> getChild() {
        return child;
    }

    public void setChild(List<T_commodity_category> child) {
        this.child = child;
    }
}
